Skip to content

fix: Jump to correct column for class-level fixture definitions#7

Merged
sigfriedCub1990 merged 1 commit into
mainfrom
pytrize-delta
Feb 18, 2026
Merged

fix: Jump to correct column for class-level fixture definitions#7
sigfriedCub1990 merged 1 commit into
mainfrom
pytrize-delta

Conversation

@sigfriedCub1990
Copy link
Copy Markdown
Owner

Summary

  • scan_fixtures was only storing the row of a fixture definition, causing jump/fixture.lua to always land at column 0
  • For fixtures defined inside a class the def keyword is indented, so column 0 was wrong
  • Now stores col from func_node:start() and the jump uses it

Test plan

  • Added test asserting col=0 for a top-level fixture
  • Added test asserting col=4 for a fixture defined inside a class
  • All 75 tests pass

🤖 Generated with Claude Code

scan_fixtures was only storing the row, causing jump/fixture.lua to
always land at column 0. For fixtures defined inside a class the def
keyword is indented, so column 0 was wrong. Now stores col from
func_node:start() and the jump uses it.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@sigfriedCub1990 sigfriedCub1990 merged commit 3968cde into main Feb 18, 2026
2 checks passed
@sigfriedCub1990 sigfriedCub1990 deleted the pytrize-delta branch February 18, 2026 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant